    //
//  ZYHistoricalRecordModel.m
//  优学荟管理系统
//
//  Created by ちょうかんこん on 2017/11/1.
//  Copyright © 2017年 星道三好. All rights reserved.
//

#import "ZYHistoricalRecordModel.h"

@implementation ZYHistoricalRecordModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
    
    if ([key isEqualToString:@"lessonComments"]) {
        
        
        for (NSDictionary *dict  in value) {
            
            ZYHistoricalSubRecordModel *model = [ZYHistoricalSubRecordModel new];
            
            [model setValuesForKeysWithDictionary:dict];
            
            [self.lessonComments addObject:model];
            
            
        }
        
    }
    
    
}


- (NSMutableArray *)lessonComments {
    
    if (_lessonComments == nil) {
        self.lessonComments = [NSMutableArray array];
    }
    
    return _lessonComments;
    
    
    
}



- (NSMutableArray *)enementCount{
    
    
    if (_enementCount == nil) {
        self.enementCount = [NSMutableArray array];
        
        
    }
    
    return _enementCount;
    
    
    
}






@end


@implementation ZYHistoricalSubRecordModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}

@end




